Open all files with /files path except for .html and .svg`#2449
Open all files with /files path except for .html and .svg`#2449takluyver merged 11 commits intojupyter:masterfrom
/files path except for .html and .svg`#2449Conversation
|
@takluyver Can you review? |
|
@minrk @rgbkrk do you know of any file types other than html and svg that we should be displaying in the iframe? |
|
It's probably best to avoid a 'not_safe' blacklist, because it's easy to miss things (like the many synonyms for html) instead having a 'safe' list for things that can be trusted to be displayed raw. It seems like it makes more sense to specify a list of things that don't work in the iframe (are there examples other than PDF?) |
|
I updated so that |
|
Isn't that the same blacklisting approach just with the name 'viewable' in place of 'not_safe'? I see |
|
I have updated this PR. The way it works now:
|
Closes #2404